﻿<%@ Page Language="C#" MasterPageFile="~/dangviet.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="SES.CMS.Search2" Title="Tìm kiếm" %>

<%@ Register Src="Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc5" %>
<%@ Register TagPrefix="cp" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc5:ucBreadcrumb runat="server" ID="brc1" />
    <asp:Label ID="lblInfo" CssClass="lbtk" runat="server"></asp:Label><br />
    <div class="list-product-wrap">
        <ul class="list-product">
            <asp:Repeater runat="server" ID="rpt">
                <ItemTemplate>
                    <li>
                        <div class="product-image-wrap">
                            <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                                <img src='/Media/<%#Eval("HinhAnh")%>' title='<%#Eval("TenSanPham")%>' alt='<%#Eval("TenSanPham") %>' />
                            </a>
                        </div>
                        <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                            <h2 class="product-title">
                                <%#Eval("TenSanPham")%></h2>
                        </a>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    <asp:Repeater ID="rptNews" runat="server">
        <ItemTemplate>
            <div class="itemcat" style="border-bottom: solid 1px #ADE7AD;">
                <div class="center-subtitle">
                    <a href="<%#"/Article/"+Eval("ArticleID")+"/"+FriendlyUrl(Eval("Title").ToString())%>">
                        <%#Eval("Title")%></a>
                </div>
                <div class="center-info">
                    <div class="info-img">
                        <a href="<%#"/Article/"+Eval("ArticleID")+"/"+FriendlyUrl(Eval("Title").ToString())%>">
                            <img src='<%#"/Media/" + Eval("ImageUrl") %>' />
                        </a>
                    </div>
                    <p style="margin-top: 5px;">
                        <%#Eval("Description")%>.
                    </p>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div class="collection">
        <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
            LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
            PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
            PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
            ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
            ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
        </cp:CollectionPager>
        <div class="collectPage">
            Page:</div>
    </div>
    <div style="width: 100%; float: left; margin-top: 10px; display: none;">
        <div style="float: left;">
            <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                ImageUrl="~/images/prevpage.png" /></div>
        <div style="float: right;">
            <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                ImageUrl="~/images/nextpage.png" /></div>
    </div>
</asp:Content>
